<template>
	<view>
		<view class="head">
			<view class="top">
				<view class="arrow">
				</view>
				<view style="color: white; font-size: 48rpx;"
					>导航</view>
			</view>
			<uni-card spacing="5px">
				<map style="height: 70vh;width: auto;" :latitude="latitude" :longitude="longitude"
					:markers="covers"></map>
					<view class="bottom">
						<view class="bottomleft">
							<view>车百事汽车生活馆</view>
							<view>山阳区人民路与解放路交叉口</view>
						</view>
						<view class="bottomright">
							<u-button shape="circle" customStyle="color:white;width:25vw;background-color: #0662E6;">导航</u-button>
						</view>
					</view>
			</uni-card>
			</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id: 0, // 使用 marker点击事件 需要填写id
				title: 'map',
				latitude: 39.909,
				longitude: 116.39742,
				covers: [{
					latitude: 39.909,
					longitude: 116.39742,
					// iconPath: '/static/images/ys/carFix/zuobiao.png',9
					// iconPath: '/static/images/ys/carFix/dialog.png'
				}]
			}
		},
		methods: {
			
		}
	}
</script>

<style>
	.bottomleft{
		margin-top: 2vh;
		text-align: left;
	}
	.bottomleft :nth-child(1){
		font-size: 3vh;
		margin-bottom: 1vh;
		font-weight: 600;
	}
	.bottom{
		display: flex;
		justify-content: space-between;
		align-items: center;
	}
	.top {
		background-color: #2F81FA;
		width: 100%;
		height: 20%;
		position: fixed;
		position: relative;
		text-align: center;
		padding-top: 4%;
		box-sizing: border-box;
	}

	.arrow {
		height: 28rpx;
		width: 28rpx;
		border-top: 4rpx solid white;
		border-right: 4rpx solid white;
		transform: rotate(225deg);
		position: absolute;
		left: 3%;
	}

	.head {
		position: relative;
		text-align: center;
		height: 35vh;
		width: 100%;
		background-color: #2F81FA;
	}
</style>
